/**
 * @filename:Inventorylog Dec 12, 2023
 * Copyright(c) 2022 Wonder Co. Ltd.
 * All right reserved.
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @Description:TODO(即时库存日志表实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_inventorylog")
@ApiModel(value="t_inventorylog对象", description="即时库存日志表表")
public class Inventorylog extends Model<Inventorylog> {

    private static final long serialVersionUID = 1702347514892445L;

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(name = "id" , value = "主键")
    private Integer id;

    @TableField(value = "FInventoryId")
    @ApiModelProperty(name = "FInventoryId" , value = "即时库存id")
    private Integer FInventoryId;

    @TableField(value = "FFormId")
    @ApiModelProperty(name = "FFormId" , value = "单据类型")
    private String FFormId;

    @TableField(value = "FBillno")
    @ApiModelProperty(name = "FBillno" , value = "单据编号")
    private String FBillno;

    @TableField(value = "FMaterialNo")
    @ApiModelProperty(name = "FMaterialNo" , value = "物料编码")
    private String FMaterialNo;

    @TableField(value = "FMaterialName")
    @ApiModelProperty(name = "FMaterialName" , value = "物料名称")
    private String FMaterialName;

    @TableField(value = "FSPECIFICATION")
    @ApiModelProperty(name = "FSPECIFICATION" , value = "规格")
    private String FSPECIFICATION;

    @TableField(value = "FUnit")
    @ApiModelProperty(name = "FUnit" , value = "单位")
    private String FUnit;

    @TableField(value = "FQTY")
    @ApiModelProperty(name = "FQTY" , value = "数量")
    private BigDecimal FQTY;

    @TableField(value = "FUpdate")
    @ApiModelProperty(name = "FUpdate" , value = "更新时间")
    private Date FUpdate;

    @TableField(value = "FOperator")
    @ApiModelProperty(name = "FOperator" , value = "操作人")
    private String FOperator;

    @TableField(value = "FStock")
    @ApiModelProperty(name = "FStock" , value = "仓库")
    private String FStock;

    @TableField(value = "FProduceDate")
    @ApiModelProperty(name = "FProduceDate" , value = "生产日期")
    private Date FProduceDate;

    @TableField(value = "FExpiryDate")
    @ApiModelProperty(name = "FExpiryDate" , value = "有效期至")
    private Date FExpiryDate;

    @TableField(value = "FLot")
    @ApiModelProperty(name = "FLot" , value = "批号")
    private String FLot;

    @TableField(value = "FTarget")
    @ApiModelProperty(name = "FTarget" , value = "出库去向车间或者领料人")
    private String FTarget;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
